package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TraceType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trace_type", catalog = "hospital")
public class TraceType implements java.io.Serializable {

	// Fields

	private String id;
	private Long version;
	private String child;
	private String unit;
	private String name;
	private String adult;
	private String sampleType;
	private Integer sequence;

	// Constructors

	/** default constructor */
	public TraceType() {
	}

	/** minimal constructor */
	public TraceType(Long version, String child, String unit, String name,
			String adult, String sampleType) {
		this.version = version;
		this.child = child;
		this.unit = unit;
		this.name = name;
		this.adult = adult;
		this.sampleType = sampleType;
	}

	/** full constructor */
	public TraceType(Long version, String child, String unit, String name,
			String adult, String sampleType, Integer sequence) {
		this.version = version;
		this.child = child;
		this.unit = unit;
		this.name = name;
		this.adult = adult;
		this.sampleType = sampleType;
		this.sequence = sequence;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "child", nullable = false)
	public String getChild() {
		return this.child;
	}

	public void setChild(String child) {
		this.child = child;
	}

	@Column(name = "unit", nullable = false)
	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "adult", nullable = false)
	public String getAdult() {
		return this.adult;
	}

	public void setAdult(String adult) {
		this.adult = adult;
	}

	@Column(name = "sample_type", nullable = false)
	public String getSampleType() {
		return this.sampleType;
	}

	public void setSampleType(String sampleType) {
		this.sampleType = sampleType;
	}

	@Column(name = "sequence")
	public Integer getSequence() {
		return this.sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

}